package com.school.repair.dao;

import com.school.repair.entity.BaoXiuDan;
import com.school.repair.entity.BaoXiuMan;
import com.school.repair.entity.RepairMan;
import com.school.repair.entity.Todo;
import com.school.repair.util.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RepairManDao {
    int total(@Param("name") String name, @Param("goodat") String goodat);

    List<RepairMan> repairManPage(@Param("pageNo") int pageNo, @Param("pageSize") int pageSize, @Param("name") String name, @Param("goodat") String goodat);

    RepairMan findRepairMan(long id);

    int adminUpdateRepairMan(RepairMan rm);

    int delRepair(@Param("id") long id);

    RepairMan login(@Param("name") String name,@Param("yzm") String yzm);

    int add(RepairMan repairMan);

    int VerifyName(@Param("name") String name,@Param("id") long id);

    List<BaoXiuDan> repairmanBaoxiudans(@Param("pageNo") int pageNo, @Param("pageSize") int pageSize, @Param("id") long repairmanId);

    int searchTotal(@Param("id") long repairmanId);

    List<Todo> todosBy(int pageNo, int pageSize, long id);

    int todoTotalBy(long id);
}
